/*
 * Vertex.h
 *
 *  Created on: 2011/08/29
 *      Author: naoki
 */

#ifndef INCLUDED_NTENGINE_GRAPHICS_VERTEX_H
#define INCLUDED_NTENGINE_GRAPHICS_VERTEX_H

#include "NTEngine/Math/Vector2.h"
#include "NTEngine/Math/Vector3.h"
#include "NTEngine/Math/Vector4.h"

namespace NTEngine {
using namespace Math;
namespace Graphics {

/**
 * @brief 通常頂点
 */
struct Vertex {
	Vector4 p; // position
	unsigned c; // color
	Vector2 t; // texture coord
	Vector3 n; // normal
};

/**
 * @brief 頂点ブレンド用頂点
 */
struct BlendingVertex : public Vertex {
	Vector4 w; // weights
	unsigned char b[ 4 ]; // boneIndecies
};

} // namespace Graphics
} // namespace NTEngine

#endif // INCLUDED_NTENGINE_GRAPHICS_VERTEX_H
